package com.wframe.project.jnd.entity;

import org.springframework.stereotype.Repository;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * Created by lwb on 2017/5/31.
 */
@Repository
public class BuySendPromotion extends Promotion {
    @Column(name = "buy_number")
    private Integer buyNumber;

    @Column(name = "send_number")
    private Integer sendNumber;

    //最大可送件数
    private Integer maxNumber;

    private Integer productid;

    public Integer getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(Integer buyNumber) {
        this.buyNumber = buyNumber;
    }

    public Integer getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(Integer sendNumber) {
        this.sendNumber = sendNumber;
    }

    public Integer getMaxNumber() {
        return sendNumber * super.getTime();
    }

    public void setMaxNumber(Integer maxNumber) {
        this.maxNumber = maxNumber;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

}
